package com.example.carrierapp.ui.main.tender;

import android.support.v4.view.ViewPager;

import com.example.carrierapp.base.BaseActivity;
import com.example.carrierapp.ui.adapter.TenderAdapter;
import com.example.carrierapp.ui.view.PagerSlidingTabStrips;
import com.example.lb.fingerdemo.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class TenderActivity extends BaseActivity {
    @BindView(R.id.pst_dispatch_tab)
    PagerSlidingTabStrips mPagerTab;
    @BindView(R.id.vp_dispatch_container)
    ViewPager mViewPager;

    @Override
    public int getContentView() {
        return R.layout.activity_tender;
    }

    @Override
    public String getTitleString() {
        return null;
    }

    @Override
    public void initView() {
        super.initView();
        ButterKnife.bind(this);
    }

    @Override
    public void initEvent() {
        super.initEvent();
        TenderAdapter mAdapter=new TenderAdapter(getSupportFragmentManager(),getResources().getStringArray(R.array.title_tender));
        mViewPager.setAdapter(mAdapter);
        mViewPager.setCurrentItem(0);
        mPagerTab.setViewPager(mViewPager);
    }
    @OnClick({R.id.ib_dispatch_back})
    public void onBackClick()
    {
        finish();
    }
}
